import http from "@/utils/request";

export const getData = ()=>{
  //返回一个promise对象
   return http.get('/home/getData')
}

export const getUser =(params)=>{
   return http.get('/user/getUser',params)
}

export const addUser = (data)=>{
   return http.post('/user/add',data)
}
export const delUser = (data)=>{
  return http.post('/user/del',data)
}
export const updateUser = (data)=>{
  return http.post('/user/update',data)
}
export const getMenu = (data)=>{
  return http.post('/permission/getmenu',data)
}